package cz.cvut.fel.gfupan.gui.tab;

import cz.cvut.fel.gfupan.gui.MeasurePanel;
import cz.cvut.fel.gfupan.gui.Session;
import cz.cvut.fel.gfupan.gui.action.LoadFAction;
import cz.cvut.fel.gfupan.gui.component.Button;
import cz.cvut.fel.gfupan.gui.component.TextField;
import cz.cvut.fel.gfupan.gui.execution.Average;
import cz.cvut.fel.gfupan.gui.execution.Total;
import cz.cvut.fel.gfupan.gui.util.Coordinates;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import javax.swing.JComponent;

public class TotalTab extends AbstractTab {

    private MeasurePanel parent;

    public TotalTab(MeasurePanel parent) {
        this.parent = parent;
        tab = new HashMap<Coordinates, JComponent>();
        initComponents();
        fill();
        actualCoords = new Coordinates(0, 0);
    }

    @Override
    public void setObservers() {
        //F1
        addObserver(f1Number0, totalAvgErrorField);
        addObserver(f1Number1, totalAvgErrorField);
        addObserver(f1Number2, totalAvgErrorField);
        addObserver(f1Number3, totalAvgErrorField);
        addObserver(f1Number4, totalAvgErrorField);
        addObserver(f1Number5, totalAvgErrorField);
        addObserver(f1Number6, totalAvgErrorField);
        addObserver(f1Number7, totalAvgErrorField);
        addObserver(f1Number8, totalAvgErrorField);
        addObserver(f1Number9, totalAvgErrorField);
        addObserver(f1Number10, totalAvgErrorField);
        addObserver(f1Number11, totalAvgErrorField);

        addObserver(f2File0, totalAvgErrorField);
        addObserver(f2File1, totalAvgErrorField);
        addObserver(f2File2, totalAvgErrorField);
        addObserver(f2File3, totalAvgErrorField);
        addObserver(f2File4, totalAvgErrorField);
        addObserver(f2File5, totalAvgErrorField);
        addObserver(f2File6, totalAvgErrorField);
        addObserver(f2File7, totalAvgErrorField);
        addObserver(f2File8, totalAvgErrorField);
        addObserver(f2File9, totalAvgErrorField);
        addObserver(f2File10, totalAvgErrorField);
        addObserver(f2File11, totalAvgErrorField);

        setExecutor(totalAvgErrorField, new Total(
                new Average(f1Number0, f1Number1, f1Number2, f1Number3, f1Number4,
                f1Number5, f1Number6, f1Number7, f1Number8, f1Number9, f1Number10,
                f1Number11),
                new Average(f2File0, f2File1, f2File2, f2File3, f2File4, f2File5,
                f2File6, f2File7, f2File8, f2File9, f2File10, f2File11)));

        //autofill
        autoFillLoop(inclinationMeasure1Hours0, inclinationMeasure1Hours1, inclinationMeasure1Hours2, inclinationMeasure1Hours3,
                inclinationMeasure1Hours4, inclinationMeasure1Hours5, inclinationMeasure1Hours6, inclinationMeasure1Hours7,
                inclinationMeasure1Hours8, inclinationMeasure1Hours9, inclinationMeasure1Hours10, inclinationMeasure1Hours11);

        autoFillLoop(inclinationMeasure1Minutes0, inclinationMeasure1Minutes1, inclinationMeasure1Minutes2, inclinationMeasure1Minutes3,
                inclinationMeasure1Minutes4, inclinationMeasure1Minutes5, inclinationMeasure1Minutes6, inclinationMeasure1Minutes7,
                inclinationMeasure1Minutes8, inclinationMeasure1Minutes9, inclinationMeasure1Minutes10, inclinationMeasure1Minutes11);

        autoFillLoop(inclinationMeasure1Seconds0, inclinationMeasure1Seconds1, inclinationMeasure1Seconds2, inclinationMeasure1Seconds3,
                inclinationMeasure1Seconds4, inclinationMeasure1Seconds5, inclinationMeasure1Seconds6, inclinationMeasure1Seconds7,
                inclinationMeasure1Seconds8, inclinationMeasure1Seconds9, inclinationMeasure1Seconds10, inclinationMeasure1Seconds11);

    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        total = new javax.swing.JPanel();
        jPanel1 = new javax.swing.JPanel();
        inclinationMeasure1Hours0 = new TextField(this);
        inclinationMeasure1Minutes0 = new TextField(this);
        inclinationMeasure1Seconds0 = new TextField(this);
        totalMeasure1 = new javax.swing.JLabel();
        inclinationMeasure1Hours1 = new TextField(this);
        inclinationMeasure1Minutes1 = new TextField(this);
        inclinationMeasure1Seconds1 = new TextField(this);
        inclinationMeasure1Hours2 = new TextField(this);
        inclinationMeasure1Minutes2 = new TextField(this);
        inclinationMeasure1Seconds2 = new TextField(this);
        inclinationMeasure1Hours3 = new TextField(this);
        inclinationMeasure1Minutes3 = new TextField(this);
        inclinationMeasure1Seconds3 = new TextField(this);
        inclinationMeasure1Hours4 = new TextField(this);
        inclinationMeasure1Minutes4 = new TextField(this);
        inclinationMeasure1Seconds4 = new TextField(this);
        inclinationMeasure1Hours5 = new TextField(this);
        inclinationMeasure1Minutes5 = new TextField(this);
        inclinationMeasure1Seconds5 = new TextField(this);
        inclinationMeasure1Hours6 = new TextField(this);
        inclinationMeasure1Minutes6 = new TextField(this);
        inclinationMeasure1Seconds6 = new TextField(this);
        inclinationMeasure1Hours7 = new TextField(this);
        inclinationMeasure1Minutes7 = new TextField(this);
        inclinationMeasure1Seconds7 = new TextField(this);
        inclinationMeasure1Hours8 = new TextField(this);
        inclinationMeasure1Minutes8 = new TextField(this);
        inclinationMeasure1Seconds8 = new TextField(this);
        inclinationMeasure1Hours9 = new TextField(this);
        inclinationMeasure1Minutes9 = new TextField(this);
        inclinationMeasure1Seconds9 = new TextField(this);
        inclinationMeasure1Hours10 = new TextField(this);
        inclinationMeasure1Minutes10 = new TextField(this);
        inclinationMeasure1Seconds10 = new TextField(this);
        totalMeasure2 = new javax.swing.JLabel();
        totalMeasure3 = new javax.swing.JLabel();
        totalMeasure4 = new javax.swing.JLabel();
        totalMeasure5 = new javax.swing.JLabel();
        totalMeasure6 = new javax.swing.JLabel();
        totalMeasure7 = new javax.swing.JLabel();
        totalMeasure8 = new javax.swing.JLabel();
        totalMeasure9 = new javax.swing.JLabel();
        totalMeasure10 = new javax.swing.JLabel();
        totalMeasure11 = new javax.swing.JLabel();
        inclinationMeasure1Hours11 = new TextField(this);
        inclinationMeasure1Minutes11 = new TextField(this);
        inclinationMeasure1Seconds11 = new TextField(this);
        totalMeasure12 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        nowButton = new Button(this);
        f1Number0 = new TextField(this);
        f2File0 = new javax.swing.JTextField();
        f2Button0 = new Button(this);
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        f1Number1 = new TextField(this);
        f2File1 = new javax.swing.JTextField();
        f2Button1 = new Button(this);
        f1Number2 = new TextField(this);
        f2File2 = new javax.swing.JTextField();
        f2Button2 = new Button(this);
        f1Number3 = new TextField(this);
        f2File3 = new javax.swing.JTextField();
        f2Button3 = new Button(this);
        f1Number4 = new TextField(this);
        f2File4 = new javax.swing.JTextField();
        f2Button4 = new Button(this);
        f1Number5 = new TextField(this);
        f2File5 = new javax.swing.JTextField();
        f2Button5 = new Button(this);
        f1Number6 = new TextField(this);
        f2File6 = new javax.swing.JTextField();
        f2Button6 = new Button(this);
        f1Number7 = new TextField(this);
        f2File7 = new javax.swing.JTextField();
        f2Button7 = new Button(this);
        f1Number8 = new TextField(this);
        f2File8 = new javax.swing.JTextField();
        f2Button8 = new Button(this);
        f1Number9 = new TextField(this);
        f2File9 = new javax.swing.JTextField();
        f2Button9 = new Button(this);
        f1Number10 = new TextField(this);
        f2File10 = new javax.swing.JTextField();
        f2Button10 = new Button(this);
        f1Number11 = new TextField(this);
        f2File11 = new javax.swing.JTextField();
        f2Button11 = new Button(this);
        totalAvgError = new javax.swing.JLabel();
        totalAvgErrorField = new TextField(this);
        jSeparator1 = new javax.swing.JSeparator();
        jPanel2 = new javax.swing.JPanel();
        totalBackButton = new Button(this);

        setPreferredSize(new java.awt.Dimension(531, 463));

        total.setPreferredSize(new java.awt.Dimension(531, 463));

        java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("cz/cvut/fel/gfupan/res/Bundle"); // NOI18N
        inclinationMeasure1Hours0.setText(bundle.getString("TotalTab.inclinationMeasure1Hours0.text")); // NOI18N
        inclinationMeasure1Hours0.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Minutes0.setText(bundle.getString("TotalTab.inclinationMeasure1Minutes0.text")); // NOI18N
        inclinationMeasure1Minutes0.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Seconds0.setText(bundle.getString("TotalTab.inclinationMeasure1Seconds0.text")); // NOI18N
        inclinationMeasure1Seconds0.setPreferredSize(new java.awt.Dimension(24, 20));

        totalMeasure1.setText(bundle.getString("MeasurePanel.totalMeasure1.text")); // NOI18N

        inclinationMeasure1Hours1.setText(bundle.getString("TotalTab.inclinationMeasure1Hours1.text")); // NOI18N
        inclinationMeasure1Hours1.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Minutes1.setText(bundle.getString("TotalTab.inclinationMeasure1Minutes1.text")); // NOI18N
        inclinationMeasure1Minutes1.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Seconds1.setText(bundle.getString("TotalTab.inclinationMeasure1Seconds1.text")); // NOI18N
        inclinationMeasure1Seconds1.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Hours2.setText(bundle.getString("TotalTab.inclinationMeasure1Hours2.text")); // NOI18N
        inclinationMeasure1Hours2.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Minutes2.setText(bundle.getString("TotalTab.inclinationMeasure1Minutes2.text")); // NOI18N
        inclinationMeasure1Minutes2.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Seconds2.setText(bundle.getString("TotalTab.inclinationMeasure1Seconds2.text")); // NOI18N
        inclinationMeasure1Seconds2.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Hours3.setText(bundle.getString("TotalTab.inclinationMeasure1Hours3.text")); // NOI18N
        inclinationMeasure1Hours3.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Minutes3.setText(bundle.getString("TotalTab.inclinationMeasure1Minutes3.text")); // NOI18N
        inclinationMeasure1Minutes3.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Seconds3.setText(bundle.getString("TotalTab.inclinationMeasure1Seconds3.text")); // NOI18N
        inclinationMeasure1Seconds3.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Hours4.setText(bundle.getString("TotalTab.inclinationMeasure1Hours4.text")); // NOI18N
        inclinationMeasure1Hours4.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Minutes4.setText(bundle.getString("TotalTab.inclinationMeasure1Minutes4.text")); // NOI18N
        inclinationMeasure1Minutes4.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Seconds4.setText(bundle.getString("TotalTab.inclinationMeasure1Seconds4.text")); // NOI18N
        inclinationMeasure1Seconds4.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Hours5.setText(bundle.getString("TotalTab.inclinationMeasure1Hours5.text")); // NOI18N
        inclinationMeasure1Hours5.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Minutes5.setText(bundle.getString("TotalTab.inclinationMeasure1Minutes5.text")); // NOI18N
        inclinationMeasure1Minutes5.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Seconds5.setText(bundle.getString("TotalTab.inclinationMeasure1Seconds5.text")); // NOI18N
        inclinationMeasure1Seconds5.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Hours6.setText(bundle.getString("TotalTab.inclinationMeasure1Hours6.text")); // NOI18N
        inclinationMeasure1Hours6.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Minutes6.setText(bundle.getString("TotalTab.inclinationMeasure1Minutes6.text")); // NOI18N
        inclinationMeasure1Minutes6.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Seconds6.setText(bundle.getString("TotalTab.inclinationMeasure1Seconds6.text")); // NOI18N
        inclinationMeasure1Seconds6.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Hours7.setText(bundle.getString("TotalTab.inclinationMeasure1Hours7.text")); // NOI18N
        inclinationMeasure1Hours7.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Minutes7.setText(bundle.getString("TotalTab.inclinationMeasure1Minutes7.text")); // NOI18N
        inclinationMeasure1Minutes7.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Seconds7.setText(bundle.getString("TotalTab.inclinationMeasure1Seconds7.text")); // NOI18N
        inclinationMeasure1Seconds7.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Hours8.setText(bundle.getString("TotalTab.inclinationMeasure1Hours8.text")); // NOI18N
        inclinationMeasure1Hours8.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Minutes8.setText(bundle.getString("TotalTab.inclinationMeasure1Minutes8.text")); // NOI18N
        inclinationMeasure1Minutes8.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Seconds8.setText(bundle.getString("TotalTab.inclinationMeasure1Seconds8.text")); // NOI18N
        inclinationMeasure1Seconds8.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Hours9.setText(bundle.getString("TotalTab.inclinationMeasure1Hours9.text")); // NOI18N
        inclinationMeasure1Hours9.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Minutes9.setText(bundle.getString("TotalTab.inclinationMeasure1Minutes9.text")); // NOI18N
        inclinationMeasure1Minutes9.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Seconds9.setText(bundle.getString("TotalTab.inclinationMeasure1Seconds9.text")); // NOI18N
        inclinationMeasure1Seconds9.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Hours10.setText(bundle.getString("TotalTab.inclinationMeasure1Hours10.text")); // NOI18N
        inclinationMeasure1Hours10.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Minutes10.setText(bundle.getString("TotalTab.inclinationMeasure1Minutes10.text")); // NOI18N
        inclinationMeasure1Minutes10.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Seconds10.setText(bundle.getString("TotalTab.inclinationMeasure1Seconds10.text")); // NOI18N
        inclinationMeasure1Seconds10.setPreferredSize(new java.awt.Dimension(24, 20));

        totalMeasure2.setText(bundle.getString("MeasurePanel.totalMeasure2.text")); // NOI18N

        totalMeasure3.setText(bundle.getString("MeasurePanel.totalMeasure3.text")); // NOI18N

        totalMeasure4.setText(bundle.getString("MeasurePanel.totalMeasure4.text")); // NOI18N

        totalMeasure5.setText(bundle.getString("MeasurePanel.totalMeasure5.text")); // NOI18N

        totalMeasure6.setText(bundle.getString("MeasurePanel.totalMeasure6.text")); // NOI18N

        totalMeasure7.setText(bundle.getString("MeasurePanel.totalMeasure7.text")); // NOI18N

        totalMeasure8.setText(bundle.getString("MeasurePanel.totalMeasure8.text")); // NOI18N

        totalMeasure9.setText(bundle.getString("MeasurePanel.totalMeasure9.text")); // NOI18N

        totalMeasure10.setText(bundle.getString("MeasurePanel.totalMeasure10.text")); // NOI18N

        totalMeasure11.setText(bundle.getString("MeasurePanel.totalMeasure11.text")); // NOI18N

        inclinationMeasure1Hours11.setText(bundle.getString("TotalTab.inclinationMeasure1Hours11.text")); // NOI18N
        inclinationMeasure1Hours11.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Minutes11.setText(bundle.getString("TotalTab.inclinationMeasure1Minutes11.text")); // NOI18N
        inclinationMeasure1Minutes11.setPreferredSize(new java.awt.Dimension(24, 20));

        inclinationMeasure1Seconds11.setText(bundle.getString("TotalTab.inclinationMeasure1Seconds11.text")); // NOI18N
        inclinationMeasure1Seconds11.setPreferredSize(new java.awt.Dimension(24, 20));

        totalMeasure12.setText(bundle.getString("MeasurePanel.totalMeasure12.text")); // NOI18N

        jLabel13.setText(bundle.getString("TotalTab.jLabel13.text")); // NOI18N

        jLabel14.setText(bundle.getString("TotalTab.jLabel14.text")); // NOI18N

        jLabel15.setText(bundle.getString("TotalTab.jLabel15.text")); // NOI18N

        nowButton.setText(bundle.getString("TotalTab.nowButton.text")); // NOI18N
        nowButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                nowButtonActionPerformed(evt);
            }
        });

        f1Number0.setText(bundle.getString("TotalTab.f1Number0.text")); // NOI18N

        f2File0.setEditable(false);
        f2File0.setText(bundle.getString("TotalTab.f2File0.text")); // NOI18N

        f2Button0.setText(bundle.getString("TotalTab.f2Button0.text")); // NOI18N

        jLabel1.setText(bundle.getString("TotalTab.jLabel1.text")); // NOI18N

        jLabel2.setText(bundle.getString("TotalTab.jLabel2.text")); // NOI18N

        f1Number1.setText(bundle.getString("TotalTab.f1Number1.text")); // NOI18N

        f2File1.setEditable(false);
        f2File1.setText(bundle.getString("TotalTab.f2File1.text")); // NOI18N

        f2Button1.setText(bundle.getString("TotalTab.f2Button1.text")); // NOI18N

        f1Number2.setText(bundle.getString("TotalTab.f1Number2.text")); // NOI18N

        f2File2.setEditable(false);
        f2File2.setText(bundle.getString("TotalTab.f2File2.text")); // NOI18N

        f2Button2.setText(bundle.getString("TotalTab.f2Button2.text")); // NOI18N

        f1Number3.setText(bundle.getString("TotalTab.f1Number3.text")); // NOI18N

        f2File3.setEditable(false);
        f2File3.setText(bundle.getString("TotalTab.f2File3.text")); // NOI18N

        f2Button3.setText(bundle.getString("TotalTab.f2Button3.text")); // NOI18N

        f1Number4.setText(bundle.getString("TotalTab.f1Number4.text")); // NOI18N

        f2File4.setEditable(false);
        f2File4.setText(bundle.getString("TotalTab.f2File4.text")); // NOI18N

        f2Button4.setText(bundle.getString("TotalTab.f2Button4.text")); // NOI18N

        f1Number5.setText(bundle.getString("TotalTab.f1Number5.text")); // NOI18N

        f2File5.setEditable(false);
        f2File5.setText(bundle.getString("TotalTab.f2File5.text")); // NOI18N

        f2Button5.setText(bundle.getString("TotalTab.f2Button5.text")); // NOI18N

        f1Number6.setText(bundle.getString("TotalTab.f1Number6.text")); // NOI18N

        f2File6.setEditable(false);
        f2File6.setText(bundle.getString("TotalTab.f2File6.text")); // NOI18N

        f2Button6.setText(bundle.getString("TotalTab.f2Button6.text")); // NOI18N

        f1Number7.setText(bundle.getString("TotalTab.f1Number7.text")); // NOI18N

        f2File7.setEditable(false);
        f2File7.setText(bundle.getString("TotalTab.f2File7.text")); // NOI18N

        f2Button7.setText(bundle.getString("TotalTab.f2Button7.text")); // NOI18N

        f1Number8.setText(bundle.getString("TotalTab.f1Number8.text")); // NOI18N

        f2File8.setEditable(false);
        f2File8.setText(bundle.getString("TotalTab.f2File8.text")); // NOI18N

        f2Button8.setText(bundle.getString("TotalTab.f2Button8.text")); // NOI18N

        f1Number9.setText(bundle.getString("TotalTab.f1Number9.text")); // NOI18N

        f2File9.setEditable(false);
        f2File9.setText(bundle.getString("TotalTab.f2File9.text")); // NOI18N

        f2Button9.setText(bundle.getString("TotalTab.f2Button9.text")); // NOI18N

        f1Number10.setText(bundle.getString("TotalTab.f1Number10.text")); // NOI18N

        f2File10.setEditable(false);
        f2File10.setText(bundle.getString("TotalTab.f2File10.text")); // NOI18N

        f2Button10.setText(bundle.getString("TotalTab.f2Button10.text")); // NOI18N

        f1Number11.setText(bundle.getString("TotalTab.f1Number11.text")); // NOI18N

        f2File11.setEditable(false);
        f2File11.setText(bundle.getString("TotalTab.f2File11.text")); // NOI18N

        f2Button11.setText(bundle.getString("TotalTab.f2Button11.text")); // NOI18N

        totalAvgError.setText(bundle.getString("MeasurePanel.totalAvgError.text")); // NOI18N

        totalAvgErrorField.setEditable(false);
        totalAvgErrorField.setText(bundle.getString("MeasurePanel.totalAvgErrorField.text")); // NOI18N

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(totalMeasure1)
                                                .addComponent(totalMeasure2))
                                            .addComponent(totalMeasure3)
                                            .addComponent(totalMeasure4))
                                        .addComponent(totalMeasure5)
                                        .addComponent(totalMeasure6)
                                        .addComponent(totalMeasure7))
                                    .addComponent(totalMeasure8))
                                .addComponent(totalMeasure9))
                            .addComponent(totalMeasure10)
                            .addComponent(totalMeasure11)
                            .addComponent(totalMeasure12))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(inclinationMeasure1Hours10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(inclinationMeasure1Minutes10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(inclinationMeasure1Seconds10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(inclinationMeasure1Hours9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(inclinationMeasure1Minutes9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(inclinationMeasure1Seconds9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(inclinationMeasure1Hours8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(inclinationMeasure1Minutes8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(inclinationMeasure1Seconds8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(inclinationMeasure1Hours7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(inclinationMeasure1Minutes7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(inclinationMeasure1Seconds7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel1Layout.createSequentialGroup()
                                            .addComponent(inclinationMeasure1Hours0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(inclinationMeasure1Minutes0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(inclinationMeasure1Seconds0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(nowButton))
                                        .addGroup(jPanel1Layout.createSequentialGroup()
                                            .addComponent(jLabel13)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                            .addComponent(jLabel14)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                            .addComponent(jLabel15))
                                        .addGroup(jPanel1Layout.createSequentialGroup()
                                            .addComponent(inclinationMeasure1Hours1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(inclinationMeasure1Minutes1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(inclinationMeasure1Seconds1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGroup(jPanel1Layout.createSequentialGroup()
                                            .addComponent(inclinationMeasure1Hours2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(inclinationMeasure1Minutes2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(inclinationMeasure1Seconds2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGroup(jPanel1Layout.createSequentialGroup()
                                            .addComponent(inclinationMeasure1Hours3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(inclinationMeasure1Minutes3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(inclinationMeasure1Seconds3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGroup(jPanel1Layout.createSequentialGroup()
                                            .addComponent(inclinationMeasure1Hours4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(inclinationMeasure1Minutes4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(inclinationMeasure1Seconds4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel1Layout.createSequentialGroup()
                                            .addComponent(f1Number4, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(f2File4, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(f2Button4))
                                        .addGroup(jPanel1Layout.createSequentialGroup()
                                            .addComponent(f1Number3, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(f2File3, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(f2Button3))
                                        .addGroup(jPanel1Layout.createSequentialGroup()
                                            .addComponent(f1Number2, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(f2File2, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(f2Button2))
                                        .addGroup(jPanel1Layout.createSequentialGroup()
                                            .addComponent(f1Number1, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(f2File1, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(f2Button1))
                                        .addGroup(jPanel1Layout.createSequentialGroup()
                                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(f1Number0, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(jLabel1))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(jPanel1Layout.createSequentialGroup()
                                                    .addComponent(f2File0, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(f2Button0))
                                                .addComponent(jLabel2)))))
                                .addGroup(jPanel1Layout.createSequentialGroup()
                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jPanel1Layout.createSequentialGroup()
                                                .addComponent(inclinationMeasure1Hours5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(inclinationMeasure1Minutes5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(inclinationMeasure1Seconds5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addGap(69, 69, 69))
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                                                .addGap(0, 0, Short.MAX_VALUE)
                                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                                                        .addComponent(inclinationMeasure1Hours6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                        .addComponent(inclinationMeasure1Minutes6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                        .addComponent(inclinationMeasure1Seconds6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addGap(69, 69, 69))
                                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                                                        .addComponent(totalAvgError)
                                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))))
                                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                                            .addComponent(inclinationMeasure1Hours11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(inclinationMeasure1Minutes11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(inclinationMeasure1Seconds11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(69, 69, 69)))
                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel1Layout.createSequentialGroup()
                                            .addComponent(f1Number11, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(f2File11, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(f2Button11))
                                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addGroup(jPanel1Layout.createSequentialGroup()
                                                .addComponent(f1Number6, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(f2File6, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(f2Button6))
                                            .addGroup(jPanel1Layout.createSequentialGroup()
                                                .addComponent(f1Number5, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(f2File5, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(f2Button5))
                                            .addGroup(jPanel1Layout.createSequentialGroup()
                                                .addComponent(f1Number7, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(f2File7, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(f2Button7))
                                            .addGroup(jPanel1Layout.createSequentialGroup()
                                                .addComponent(f1Number8, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(f2File8, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(f2Button8))
                                            .addGroup(jPanel1Layout.createSequentialGroup()
                                                .addComponent(f1Number9, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(f2File9, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(f2Button9))
                                            .addGroup(jPanel1Layout.createSequentialGroup()
                                                .addComponent(f1Number10, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(f2File10, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(f2Button10))
                                            .addComponent(totalAvgErrorField)))))))
                    .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 444, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(72, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel13)
                    .addComponent(jLabel14)
                    .addComponent(jLabel15)
                    .addComponent(jLabel1)
                    .addComponent(jLabel2))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(inclinationMeasure1Minutes0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(inclinationMeasure1Hours0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(inclinationMeasure1Seconds0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(totalMeasure1)
                    .addComponent(nowButton)
                    .addComponent(f1Number0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(f2Button0)
                    .addComponent(f2File0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(inclinationMeasure1Minutes1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(inclinationMeasure1Hours1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(inclinationMeasure1Seconds1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(totalMeasure2)
                    .addComponent(f1Number1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(f2Button1)
                    .addComponent(f2File1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(inclinationMeasure1Minutes2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(inclinationMeasure1Hours2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(inclinationMeasure1Seconds2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(totalMeasure3)
                    .addComponent(f1Number2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(f2Button2)
                    .addComponent(f2File2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(inclinationMeasure1Minutes3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(inclinationMeasure1Hours3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(inclinationMeasure1Seconds3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(totalMeasure4)
                    .addComponent(f1Number3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(f2Button3)
                    .addComponent(f2File3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(inclinationMeasure1Minutes4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(inclinationMeasure1Hours4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(inclinationMeasure1Seconds4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(totalMeasure5)
                    .addComponent(f1Number4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(f2Button4)
                    .addComponent(f2File4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(inclinationMeasure1Minutes5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(inclinationMeasure1Hours5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(inclinationMeasure1Seconds5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(totalMeasure6)
                    .addComponent(f1Number5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(f2Button5)
                    .addComponent(f2File5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(inclinationMeasure1Minutes6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(inclinationMeasure1Hours6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(inclinationMeasure1Seconds6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(totalMeasure7)
                    .addComponent(f1Number6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(f2Button6)
                    .addComponent(f2File6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(inclinationMeasure1Minutes7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(inclinationMeasure1Hours7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(inclinationMeasure1Seconds7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(totalMeasure8)
                    .addComponent(f1Number7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(f2Button7)
                    .addComponent(f2File7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(inclinationMeasure1Minutes8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(inclinationMeasure1Hours8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(inclinationMeasure1Seconds8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(totalMeasure9)
                    .addComponent(f1Number8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(f2Button8)
                    .addComponent(f2File8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(inclinationMeasure1Minutes9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(inclinationMeasure1Hours9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(inclinationMeasure1Seconds9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(totalMeasure10)
                    .addComponent(f1Number9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(f2Button9)
                    .addComponent(f2File9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(inclinationMeasure1Minutes10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(inclinationMeasure1Hours10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(inclinationMeasure1Seconds10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(totalMeasure11)
                    .addComponent(f1Number10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(f2Button10)
                    .addComponent(f2File10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(inclinationMeasure1Minutes11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(inclinationMeasure1Hours11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(inclinationMeasure1Seconds11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(totalMeasure12)
                    .addComponent(f1Number11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(f2Button11)
                    .addComponent(f2File11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(totalAvgErrorField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(totalAvgError))
                .addContainerGap())
        );

        totalBackButton.setText(bundle.getString("MeasurePanel.totalBackButton.text")); // NOI18N
        totalBackButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                totalBackButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(totalBackButton)
                .addGap(81, 81, 81))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(totalBackButton)
                .addContainerGap())
        );

        javax.swing.GroupLayout totalLayout = new javax.swing.GroupLayout(total);
        total.setLayout(totalLayout);
        totalLayout.setHorizontalGroup(
            totalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        totalLayout.setVerticalGroup(
            totalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(totalLayout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(total, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(total, javax.swing.GroupLayout.DEFAULT_SIZE, 469, Short.MAX_VALUE)
        );
    }// </editor-fold>//GEN-END:initComponents

    private void totalBackButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_totalBackButtonActionPerformed
        parent.moveToTab(MeasurePanel.INCLINATION_TAB);
    }//GEN-LAST:event_totalBackButtonActionPerformed

    private void nowButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nowButtonActionPerformed
        inclinationMeasure1Hours0.requestFocus();

        inclinationMeasure1Hours0.setText(new SimpleDateFormat("HH").format(new Date()));
        inclinationMeasure1Minutes0.setText(new SimpleDateFormat("mm").format(new Date()));
        inclinationMeasure1Seconds0.setText(new SimpleDateFormat("ss").format(new Date()));

        Session.getInstance().hasChanged(); //zmenili jsme datum
    }//GEN-LAST:event_nowButtonActionPerformed
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextField f1Number0;
    private javax.swing.JTextField f1Number1;
    private javax.swing.JTextField f1Number10;
    private javax.swing.JTextField f1Number11;
    private javax.swing.JTextField f1Number2;
    private javax.swing.JTextField f1Number3;
    private javax.swing.JTextField f1Number4;
    private javax.swing.JTextField f1Number5;
    private javax.swing.JTextField f1Number6;
    private javax.swing.JTextField f1Number7;
    private javax.swing.JTextField f1Number8;
    private javax.swing.JTextField f1Number9;
    private javax.swing.JButton f2Button0;
    private javax.swing.JButton f2Button1;
    private javax.swing.JButton f2Button10;
    private javax.swing.JButton f2Button11;
    private javax.swing.JButton f2Button2;
    private javax.swing.JButton f2Button3;
    private javax.swing.JButton f2Button4;
    private javax.swing.JButton f2Button5;
    private javax.swing.JButton f2Button6;
    private javax.swing.JButton f2Button7;
    private javax.swing.JButton f2Button8;
    private javax.swing.JButton f2Button9;
    private javax.swing.JTextField f2File0;
    private javax.swing.JTextField f2File1;
    private javax.swing.JTextField f2File10;
    private javax.swing.JTextField f2File11;
    private javax.swing.JTextField f2File2;
    private javax.swing.JTextField f2File3;
    private javax.swing.JTextField f2File4;
    private javax.swing.JTextField f2File5;
    private javax.swing.JTextField f2File6;
    private javax.swing.JTextField f2File7;
    private javax.swing.JTextField f2File8;
    private javax.swing.JTextField f2File9;
    private javax.swing.JTextField inclinationMeasure1Hours0;
    private javax.swing.JTextField inclinationMeasure1Hours1;
    private javax.swing.JTextField inclinationMeasure1Hours10;
    private javax.swing.JTextField inclinationMeasure1Hours11;
    private javax.swing.JTextField inclinationMeasure1Hours2;
    private javax.swing.JTextField inclinationMeasure1Hours3;
    private javax.swing.JTextField inclinationMeasure1Hours4;
    private javax.swing.JTextField inclinationMeasure1Hours5;
    private javax.swing.JTextField inclinationMeasure1Hours6;
    private javax.swing.JTextField inclinationMeasure1Hours7;
    private javax.swing.JTextField inclinationMeasure1Hours8;
    private javax.swing.JTextField inclinationMeasure1Hours9;
    private javax.swing.JTextField inclinationMeasure1Minutes0;
    private javax.swing.JTextField inclinationMeasure1Minutes1;
    private javax.swing.JTextField inclinationMeasure1Minutes10;
    private javax.swing.JTextField inclinationMeasure1Minutes11;
    private javax.swing.JTextField inclinationMeasure1Minutes2;
    private javax.swing.JTextField inclinationMeasure1Minutes3;
    private javax.swing.JTextField inclinationMeasure1Minutes4;
    private javax.swing.JTextField inclinationMeasure1Minutes5;
    private javax.swing.JTextField inclinationMeasure1Minutes6;
    private javax.swing.JTextField inclinationMeasure1Minutes7;
    private javax.swing.JTextField inclinationMeasure1Minutes8;
    private javax.swing.JTextField inclinationMeasure1Minutes9;
    private javax.swing.JTextField inclinationMeasure1Seconds0;
    private javax.swing.JTextField inclinationMeasure1Seconds1;
    private javax.swing.JTextField inclinationMeasure1Seconds10;
    private javax.swing.JTextField inclinationMeasure1Seconds11;
    private javax.swing.JTextField inclinationMeasure1Seconds2;
    private javax.swing.JTextField inclinationMeasure1Seconds3;
    private javax.swing.JTextField inclinationMeasure1Seconds4;
    private javax.swing.JTextField inclinationMeasure1Seconds5;
    private javax.swing.JTextField inclinationMeasure1Seconds6;
    private javax.swing.JTextField inclinationMeasure1Seconds7;
    private javax.swing.JTextField inclinationMeasure1Seconds8;
    private javax.swing.JTextField inclinationMeasure1Seconds9;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JButton nowButton;
    private javax.swing.JPanel total;
    private javax.swing.JLabel totalAvgError;
    private javax.swing.JTextField totalAvgErrorField;
    private javax.swing.JButton totalBackButton;
    private javax.swing.JLabel totalMeasure1;
    private javax.swing.JLabel totalMeasure10;
    private javax.swing.JLabel totalMeasure11;
    private javax.swing.JLabel totalMeasure12;
    private javax.swing.JLabel totalMeasure2;
    private javax.swing.JLabel totalMeasure3;
    private javax.swing.JLabel totalMeasure4;
    private javax.swing.JLabel totalMeasure5;
    private javax.swing.JLabel totalMeasure6;
    private javax.swing.JLabel totalMeasure7;
    private javax.swing.JLabel totalMeasure8;
    private javax.swing.JLabel totalMeasure9;
    // End of variables declaration//GEN-END:variables

    @Override
    public void clearFields() {
        clearField(f1Number0);
        clearField(f1Number1);
        clearField(f1Number10);
        clearField(f1Number11);
        clearField(f1Number2);
        clearField(f1Number3);
        clearField(f1Number4);
        clearField(f1Number5);
        clearField(f1Number6);
        clearField(f1Number7);
        clearField(f1Number8);
        clearField(f1Number9);
        clearField(f2File0);
        clearField(f2File1);
        clearField(f2File10);
        clearField(f2File11);
        clearField(f2File2);
        clearField(f2File3);
        clearField(f2File4);
        clearField(f2File5);
        clearField(f2File6);
        clearField(f2File7);
        clearField(f2File8);
        clearField(f2File9);
        clearField(inclinationMeasure1Hours0);
        clearField(inclinationMeasure1Hours1);
        clearField(inclinationMeasure1Hours10);
        clearField(inclinationMeasure1Hours11);
        clearField(inclinationMeasure1Hours2);
        clearField(inclinationMeasure1Hours3);
        clearField(inclinationMeasure1Hours4);
        clearField(inclinationMeasure1Hours5);
        clearField(inclinationMeasure1Hours6);
        clearField(inclinationMeasure1Hours7);
        clearField(inclinationMeasure1Hours8);
        clearField(inclinationMeasure1Hours9);
        clearField(inclinationMeasure1Minutes0);
        clearField(inclinationMeasure1Minutes1);
        clearField(inclinationMeasure1Minutes10);
        clearField(inclinationMeasure1Minutes11);
        clearField(inclinationMeasure1Minutes2);
        clearField(inclinationMeasure1Minutes3);
        clearField(inclinationMeasure1Minutes4);
        clearField(inclinationMeasure1Minutes5);
        clearField(inclinationMeasure1Minutes6);
        clearField(inclinationMeasure1Minutes7);
        clearField(inclinationMeasure1Minutes8);
        clearField(inclinationMeasure1Minutes9);
        clearField(inclinationMeasure1Seconds0);
        clearField(inclinationMeasure1Seconds1);
        clearField(inclinationMeasure1Seconds10);
        clearField(inclinationMeasure1Seconds11);
        clearField(inclinationMeasure1Seconds2);
        clearField(inclinationMeasure1Seconds3);
        clearField(inclinationMeasure1Seconds4);
        clearField(inclinationMeasure1Seconds5);
        clearField(inclinationMeasure1Seconds6);
        clearField(inclinationMeasure1Seconds7);
        clearField(inclinationMeasure1Seconds8);
        clearField(inclinationMeasure1Seconds9);
        clearField(totalAvgErrorField);
    }

    @Override
    public void setActionListeners() {
        f2Button0.addActionListener(new LoadFAction(parent, f2File0));
        f2Button1.addActionListener(new LoadFAction(parent, f2File1));
        f2Button2.addActionListener(new LoadFAction(parent, f2File2));
        f2Button3.addActionListener(new LoadFAction(parent, f2File3));
        f2Button4.addActionListener(new LoadFAction(parent, f2File4));
        f2Button5.addActionListener(new LoadFAction(parent, f2File5));
        f2Button6.addActionListener(new LoadFAction(parent, f2File6));
        f2Button7.addActionListener(new LoadFAction(parent, f2File7));
        f2Button8.addActionListener(new LoadFAction(parent, f2File8));
        f2Button9.addActionListener(new LoadFAction(parent, f2File9));
        f2Button10.addActionListener(new LoadFAction(parent, f2File10));
        f2Button11.addActionListener(new LoadFAction(parent, f2File11));
    }

    private void fill() {
        fillTab(0, inclinationMeasure1Hours0, inclinationMeasure1Minutes0, inclinationMeasure1Seconds0, nowButton, f1Number0, f2Button0);
        fillTab(1, inclinationMeasure1Hours1, inclinationMeasure1Minutes1, inclinationMeasure1Seconds1, f1Number1, f2Button1);
        fillTab(2, inclinationMeasure1Hours2, inclinationMeasure1Minutes2, inclinationMeasure1Seconds2, f1Number2, f2Button2);
        fillTab(3, inclinationMeasure1Hours3, inclinationMeasure1Minutes3, inclinationMeasure1Seconds3, f1Number3, f2Button3);
        fillTab(4, inclinationMeasure1Hours4, inclinationMeasure1Minutes4, inclinationMeasure1Seconds4, f1Number4, f2Button4);
        fillTab(5, inclinationMeasure1Hours5, inclinationMeasure1Minutes5, inclinationMeasure1Seconds5, f1Number5, f2Button5);
        fillTab(6, inclinationMeasure1Hours6, inclinationMeasure1Minutes6, inclinationMeasure1Seconds6, f1Number6, f2Button6);
        fillTab(7, inclinationMeasure1Hours7, inclinationMeasure1Minutes7, inclinationMeasure1Seconds7, f1Number7, f2Button7);
        fillTab(8, inclinationMeasure1Hours8, inclinationMeasure1Minutes8, inclinationMeasure1Seconds8, f1Number8, f2Button8);
        fillTab(9, inclinationMeasure1Hours9, inclinationMeasure1Minutes9, inclinationMeasure1Seconds9, f1Number9, f2Button9);
        fillTab(10, inclinationMeasure1Hours10, inclinationMeasure1Minutes10, inclinationMeasure1Seconds10, f1Number10, f2Button10);
        fillTab(11, inclinationMeasure1Hours11, inclinationMeasure1Minutes11, inclinationMeasure1Seconds11, f1Number11, f2Button11);
//        fillTab(12, totalAvgErrorField);
        fillTab(12, totalBackButton);
    }
}
